<template>
  <div class="main-page">
    <PageSearch
      :search-form-config="searchFormConfig"
      :form-data.sync="formData"
      @searchBtnClick="handleSearch"
    />
    <PageContent
      ref="pageContent"
      :form-data="formData"
      :content-table-config="contentConfig"
    >
      <template #typeName="{ row }">
        {{
          row.type == 1
            ? "商品分佣"
            : row.type == 2
            ? "流量分佣"
            : row.type == 3
            ? "提现"
            : row.type == -1
            ? "冻结"
            : row.type == -2
            ? "冻结释放"
            : "未知"
        }}
      </template>
    </PageContent>
  </div>
</template>

<script>
import { contentConfig } from "./config/content.config";
import { searchFormConfig } from "./config/search.config";
export default {
  name: "MyBillDetail",
  data() {
    return {
      contentConfig,
      searchFormConfig,
      formData: {},
    };
  },
  methods: {
    handleSearch() {
      this.$refs.pageContent.queryTblMain();
    },
  },
};
</script>

<style scoped></style>
